package com.chen.webuser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author chen
 * @since 2025-10-22
 */
@Getter
@Setter
@ToString
@TableName("dynamic")
public class Dynamic implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("uid")
    private Integer uid;

    /**
     * 0 纯文本 1 照片 2视频 3话题
     */
    @TableField("type")
    private Integer type;

    /**
     * 点赞数
     */
    @TableField("like_num")
    private Integer likeNum;

    /**
     * 评论数
     */
    @TableField("review")
    private Integer review;

    /**
     * 0 正常 1删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 正文
     */
    @TableField("content")
    private String content;

    /**
     * 发布时间
     */
    @TableField("post_time")
    private LocalDateTime postTime;

    /**
     * WebUser对象
     */
    @TableField(exist = false)
    private WebUser webUser;
}
